cmake_minimum_required(VERSION 2.4.6)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

project(ROMAN_NUMERAL)

SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib) 
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

include_directories (${PROJECT_BINARY_DIR}/include)
link_directories(${PROJECT_BINARY_DIR}/lib)

aux_source_directory(src/util util_source)
aux_source_directory(src/util util_header)
add_library(util ${util_header} ${util_source})

aux_source_directory(src/converter converter_source)
aux_source_directory(src/converter converter_header)
add_library(converter ${converter_header} ${converter_source})
target_link_libraries(converter util)

add_executable (roman_numerals src/main.cpp)
target_link_libraries(roman_numerals converter util)